package com.qualityevaluationclouduser.repository;

import com.qualityevaluationclouduser.entity.EmaiAauth;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface EmaiAauthRepository extends JpaRepository<EmaiAauth, Integer> {

    EmaiAauth findByEmailCode(String code);

    boolean existsByEmailCodeAndEmailAddress(String code, String emailAddress);
}
